Drop Python 2 support
The MR intends to remove support for Python 2 entirely.
Most of the changes are (but not limited to):
- Moving from Classic Style classes to New Style classes (classes that don't explicitly inherit from
objectsince it is not required in Python 3) - Removing Python 2 compatibility code - the likes of
if PY3: then ... - Removing the use of
unicodeand using str instead.
The custom version of TemporaryDirectory() has been replaced by tempfile's TemporaryDirectory()