A Python LockState API Library