Original port to Python 3 and tmdb3