Refactored out animation and environment systems into their own python files