A (much better) Python variation of the C++ PorkScript.