Wrapped calls to dict.keys() in list() where list operations were needed for python3.3