Copy from remap-craftbukkit.sh
Initial port to Python