Using Python2.7 unittest "skipping"

This also makes the test properly runnable using py.test.
Updated .gitignore file.
PEP8 fixes (no code change).