Moved FOR Codes out to a Python dict

Change-Id: If6fd2f8fd1dd8521461ebcf311274971bc6bf1f9