Cleaned up some python files. Added comments.