Use operator module everywhere

Much cleaner than using getattr().

Fixes issue #13
Add flake8 tox env