Update schema.py to keep attributes in the order they are declared

normally standard libraries go on top of the module