miscellaneous helpfull stuff for python