Created a clean script to remove pyc files.

Also refactored some lint code into a common file.