Ignore .pyc files.
Add test file and add mock library to requirements.