cleaned up some python