Just some hacks I put together in Python.