Dropping support for python 2.6
Fixing some errors on test due to api changes