“cmd.get_angle” returns the angle between three atoms. By default, the coordinates used are from the current state, however an alternate state identifier can be provided.
cmd.get_angle(atom1="pk1",atom2="pk2",atom3="pk3",state=-1)
def get_angle(atom1="pk1",atom2="pk2",atom3="pk3",state=-1,quiet=1):