archives.py degdist.py: Python3 compatibility