downloader: Fix use after free
handle-py: removed dead code