Import mock.patch
Ignore virtualenv
Allow non-postgres testing.
Silence pyflakes.
Switch to flake8