1. quality fix in pages.py
2. renamed CourseTab.from_dict to CourseTab.from_json to be consistent
   with other such APIs in the xmodule library. Updated comment to
   specify that the expected input is a json-like structure.
3. changed implementation of key_checker per DB's suggestion.