Bound the enum for object states to Python