Handy python scripts, hacked up quickly