Rewrite of MoronBot's core and functions in Python.