input: Write a function to rewrite the given SQL query in Python. The function should connect to a SQLite database named 'movies.db', execute the query to select all movies from the 'Movies' table where the category is 'horror', fetch the results, and print each row. The function should return void.
  
  def rewrite_sql_in_python():
      import sqlite3
      conn = sqlite3.connect('movies.db') 
      cursor = conn.cursor()
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      result = cursor.fetchall()
      for row in result:
          print(row)
      conn.close()
  
  assert rewrite_sql_in_python() is None
output: def rewrite_sql_in_python():
      import sqlite3
      conn = sqlite3.connect('movies.db') 
      cursor = conn.cursor()
      cursor.execute("SELECT * FROM Movies WHERE category = 'horror'")
      result = cursor.fetchall()
      for row in result:
          print(row)
      conn.close()