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