Make pyflakes and pep8 happy
Refactor and update test to pass on gtk 3.8 using nosetests
Run tests on travis and report to coveralls