Restructure setup.py so it can only install what works in the running python version.
Fix to provide python 3 compatibility.
Skip flask during python 3 testing.
assertEquals -> assertEqual
Test them all.