Cleaned code

Removed *.pyc and refactored pymatch.py