Update maphandler.py

Full recode from scratch. Will use mapcycle.txt files instead due to it's easy-to-use configuration.