Overhaul of Python api
Removed stray pyc files