"""
    Remove all compiled code.
"""
import os

filedirs = ['.', 'perspectives', 'perspectives/fitting']

for d in filedirs:
    files = os.listdir(d)
    for f in files:
        if f.find('.pyc')>0:
            print "Removed", f
            os.remove(os.path.join(d,f))
Add script to clean source code of compiled files.