input: Write a function to rewrite the given SQL query in Python. The function should accept the SQL query as a string and the database name as a string. It should execute the query and print the results. If no database name is provided, the function should use a default database name 'movies.db'.
  
  def rewrite_sql_query_in_python(sql_query, db_name='movies.db'):
      import sqlite3
  
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
  
      cursor.execute(sql_query)
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()
  
  assert rewrite_sql_query_in_python("SELECT * FROM Movies WHERE category = 'horror'")==None
  assert rewrite_sql_query_in_python("SELECT * FROM Movies WHERE category = 'comedy'", 'comedy_movies.db')==None
output: def rewrite_sql_query_in_python(sql_query, db_name='movies.db'):
      import sqlite3
  
      conn = sqlite3.connect(db_name) 
      cursor = conn.cursor()
  
      cursor.execute(sql_query)
  
      result = cursor.fetchall()
      for row in result:
          print(row)
  
      conn.close()