Migrate project to Python 3
Explicitly close connection.

Otherwise, in Python 3, requests generate ResourceWarning.
More unit tests