Dividing up minecraftd.py into classes and functions