Python code to help with management  of a Minecraft server