A collection of one-off python functions that I've had to create along the way