Support for returning/setting properties with enums in python