add pyc to gitignore
make test cases work better; add eb's code

I didn't realize how nosetests execution works