input: Write a function to re-write an SQL query in Python. The function should accept the SQL query as a string and the database connection as parameters. It should execute the query, fetch the results, and print each row of the result.
  assert rewrite_sql_in_python("SELECT * FROM Movies WHERE category = 'horror'", conn)==None
  assert rewrite_sql_in_python("SELECT * FROM Movies WHERE category = 'comedy'", conn)==None
  assert rewrite_sql_in_python("SELECT * FROM Movies WHERE category = 'action'", conn)==None
  assert rewrite_sql_in_python("SELECT * FROM Movies WHERE category = 'sci-fi'", conn)==None
  assert rewrite_sql_in_python("SELECT * FROM Movies WHERE category = 'animation'", conn)==None
output: def rewrite_sql_in_python(query, conn):
      cursor = conn.cursor()
      cursor.execute(query)
      results = cursor.fetchall()
      for row in results:
          print(row)