Random Python code written for the fun of it.