twiffer.py: Minor rebase of code