Removed obsolete code and .pyc files