Simplify method registering
Add pyc to gitignore