pywmidb.py rewrited