input: Write a function to re-write the given SQL query in Python. The function should establish a connection to an SQLite database named 'movies.db', execute the query to select all movies from the Movies table where the category is 'horror', and print each row returned by the query. Finally, the function should close the database connection. 
  
  assert re_write_sql_query() is None
output: import sqlite3
  
  def re_write_sql_query():
      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()