Initial Python port of debianize.sh