Reformat and optimze imports of tests
Change import statement
Pure pyversion < py2.7 check
More changes for python3
- Removage of import string
- Change to types import
More fixes -.-
- Removing string.* calls
- More