Start of reimplementation of gtdownload in Python.