Update t9.py

Made it readable.Notice the change in Dictionary (Values are hard-coded for faster access).