old_contents: import json
  def parse_data(data_dump):
      #print data_dump
      #parsed_input = json.loads(data_dump)
      print parsed_input
  
  if __name__ == '__main__':
      # test1.py executed as script
      # do something
     parse_data(data_dump)
  
new_contents: import json
  def parse_data(data_dump):
      #print data_dump
      parsed_input = json.loads(data_dump)
      print parsed_input
  
  if __name__ == '__main__':
      # test1.py executed as script
      # do something
     parse_data(data_dump)
  
subject: print added9