assort of useful python stuff