[teachertube] Fix extraction for Python 3