Thumbor classes adapted to Python3 for unit testing