Python: Code cleanup completed