Override Python's __getattr__/__setattr__ for module state variables

This is awesome, IMHO
Fix order of conversion.