message: Copy module list file in the while statement instead of creating a new variable
diff: @@ -159,8 +159,7 @@ def get_api_init_text():
  # Traverse over everything imported above. Specifically,
  # we want to traverse over TensorFlow Python modules.
  - module_list = list(sys.modules.values())
  - for module in module_list:
  + for module in list(sys.modules.values()):
  # Only look at tensorflow modules.
  if (not module or not hasattr(module, '__name__') or
  'tensorflow.' not in module.__name__):
  