show_popular_movie_with_imdb_scores.py: add -H to output in HTML format and support redirecting output to a file.
show_popular_movie_with_imdb_scores.py: output the HTML format to the given file name when -H is used.
show_popular_movie_with_imdb_scores.py: fix bug that the query string is wrong sometimes.

Test case: search "Black & White: The Dawn of Justice" in IMDB.