Remove useless empty lines
Point the test script into the appropriate source dir
Add the TLD > 1 test
Put the complicated python2/3 compatibility layer in the library instead of the user side code