Merge pull request #12 from loisaidasam/master

Splitting up one file into a module
Using Python2.7 unittest "skipping"

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