debnetworkx.py degdist.py: python3 compatibility