Update mac.py

fixed file so it would compile, removed = from dict, added /n to key map dict, modified some other stuff to ensure keys such as: !@#$%^&*() would work properly