Reverse

The reverse is also a consideration.  If somebody passes a Perl hash to a Python function, should I expect to be able to do
  for key in hash.keys():
Should string.index throw an exception if not found, return a nil/Null/None, or a -1?