title: python code error for movie project "TypeError: this constructor takes no arguments"
body: <p>I am working on a code project for Udacity and I get these 2 errors I dont get I have attached the pictures. One error is with parenthesis and when I remove the parenthesis I get an error on the code saying invalid syntax.</p>
  
  <pre><code>    import webbrowser
  
      class Movie():
          valid_ratings = ["G", "R", "PG-13", "R"]
  
          def _init_(self, movie_title, movie_storyline, poster_image,
                     trailer_youtube):
              self.title = movie_title
              self.storyline = movie_storyline
              self.poster_image_url = poster_image
              self.trailer_youtube_url = trailer_youtube
  
          def show_trailer(self):
               webbrowser.open(self.trailer_youtube_url)
     import fresh_tomatoes
  import media
  
  
  toy_story = media.Movie("Toy Story",
                          "A story of a boy and his toys come to life",
                          "http://upload.wikimedia.org/wikipedia/en/1/13/Toy_Story.jpg",
                          "http://www.youtube.com/watch?v=vwyZH85NQC4")
  
  The_devils_double = media.Movie("The_devils_double",
                                  "The story of the son of sadam hussain's body double",
                                  "https://upload.wikimedia.org/wikipedia/en/4/4c/The_Devil%27s_Double.jpg",
                                  "https://www.youtube.com/watch?v=2-MsGEWFiYg",)
  
  Movie_300 = media.Movie("300",
                    "300 spartans vs an amry of persians",
                    "https://upload.wikimedia.org/wikipedia/en/5/5c/300poster.jpg",
                    "https://www.youtube.com/watch?v=wDiUG52ZyHQ")
  
  Ratatouille = media.Movie("Ratatouille",
                            "A rat is a chef in paris",
                            "https://upload.wikimedia.org/wikipedia/en/5/50/RatatouillePoster.jpg",
                            "https://www.youtube.com/watch?v=c3sBBRxDAqk")
  Star_Wars_Episode_III = media.Movie("Star_Wars_Episode_III",
                                      "Akin Skywalker goes dark",
                                      "https://upload.wikimedia.org/wikipedia/en/9/93/Star_Wars_Episode_III_Revenge_of_the_Sith_poster.jpg",
                                      "https://www.youtube.com/watch?v=5UnjrG_N8hU")
  
  Office_Space = media.Movie("Office_Space ",
                             "A movie about how work sucks",
                             "https://upload.wikimedia.org/wikipedia/en/8/8e/Office_space_poster.jpg",
                             "https://www.youtube.com/watch?v=kwQziVIzDeg")
  #movies = [toy_story, The_devils_double, 300, Ratatouille, Star_Wars_Episode_III , Office_Space  ]
  fresh_tomatoes.open_movies_page(movies)
  print(media.Movie.valid_ratings)
  
  import webbrowser
  import os
  import re
  
  
  # Styles and scripting for the page
  main_page_head = '''
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;Fresh Tomatoes!&lt;/title&gt;
  
      &lt;!-- Bootstrap 3 --&gt;
      &lt;link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css"&gt;
      &lt;link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap-theme.min.css"&gt;
      &lt;script src="http://code.jquery.com/jquery-1.10.1.min.js"&gt;&lt;/script&gt;
      &lt;script src="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;style type="text/css" media="screen"&gt;
          body {
              padding-top: 80px;
          }
          #trailer .modal-dialog {
              margin-top: 200px;
              width: 640px;
              height: 480px;
          }
          .hanging-close {
              position: absolute;
              top: -12px;
              right: -12px;
              z-index: 9001;
          }
          #trailer-video {
              width: 100%;
              height: 100%;
          }
          .movie-tile {
              margin-bottom: 20px;
              padding-top: 20px;
          }
          .movie-tile:hover {
              background-color: #EEE;
              cursor: pointer;
          }
          .scale-media {
              padding-bottom: 56.25%;
              position: relative;
          }
          .scale-media iframe {
              border: none;
              height: 100%;
              position: absolute;
              width: 100%;
              left: 0;
              top: 0;
              background-color: white;
          }
      &lt;/style&gt;
      &lt;script type="text/javascript" charset="utf-8"&gt;
          // Pause the video when the modal is closed
          $(document).on('click', '.hanging-close, .modal-backdrop, .modal', function (event) {
              // Remove the src so the player itself gets removed, as this is the only
              // reliable way to ensure the video stops playing in IE
              $("#trailer-video-container").empty();
          });
          // Start playing the video whenever the trailer modal is opened
          $(document).on('click', '.movie-tile', function (event) {
              var trailerYouTubeId = $(this).attr('data-trailer-youtube-id')
              var sourceUrl = 'http://www.youtube.com/embed/' + trailerYouTubeId + '?autoplay=1&amp;html5=1';
              $("#trailer-video-container").empty().append($("&lt;iframe&gt;&lt;/iframe&gt;", {
                'id': 'trailer-video',
                'type': 'text-html',
                'src': sourceUrl,
                'frameborder': 0
              }));
          });
          // Animate in the movies when the page loads
          $(document).ready(function () {
            $('.movie-tile').hide().first().show("fast", function showNext() {
              $(this).next("div").show("fast", showNext);
            });
          });
      &lt;/script&gt;
  &lt;/head&gt;
  '''
  
  
  # The main page layout and title bar
  main_page_content = '''
    &lt;body&gt;
      &lt;!-- Trailer Video Modal --&gt;
      &lt;div class="modal" id="trailer"&gt;
        &lt;div class="modal-dialog"&gt;
          &lt;div class="modal-content"&gt;
            &lt;a href="#" class="hanging-close" data-dismiss="modal" aria-hidden="true"&gt;
              &lt;img src="https://lh5.ggpht.com/v4-628SilF0HtHuHdu5EzxD7WRqOrrTIDi_MhEG6_qkNtUK5Wg7KPkofp_VJoF7RS2LhxwEFCO1ICHZlc-o_=s0#w=24&amp;h=24"/&gt;
            &lt;/a&gt;
            &lt;div class="scale-media" id="trailer-video-container"&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;!-- Main Page Content --&gt;
      &lt;div class="container"&gt;
        &lt;div class="navbar navbar-inverse navbar-fixed-top" role="navigation"&gt;
          &lt;div class="container"&gt;
            &lt;div class="navbar-header"&gt;
              &lt;a class="navbar-brand" href="#"&gt;Fresh Tomatoes Movie Trailers&lt;/a&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="container"&gt;
        {movie_tiles}
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  '''
  
  
  # A single movie entry html template
  movie_tile_content = '''
  &lt;div class="col-md-6 col-lg-4 movie-tile text-center" data-trailer-youtube-id="{trailer_youtube_id}" data-toggle="modal" data-target="#trailer"&gt;
      &lt;img src="{poster_image_url}" width="220" height="342"&gt;
      &lt;h2&gt;{movie_title}&lt;/h2&gt;
  &lt;/div&gt;
  '''
  
  
  def create_movie_tiles_content(movies):
      # The HTML content for this section of the page
      content = ''
      for movie in movies:
          # Extract the youtube ID from the url
          youtube_id_match = re.search(
              r'(?&lt;=v=)[^&amp;#]+', movie.trailer_youtube_url)
          youtube_id_match = youtube_id_match or re.search(
              r'(?&lt;=be/)[^&amp;#]+', movie.trailer_youtube_url)
          trailer_youtube_id = (youtube_id_match.group(0) if youtube_id_match
                                else None)
  
          # Append the tile for the movie with its content filled in
          content += movie_tile_content.format(
              movie_title=movie.title,
              poster_image_url=movie.poster_image_url,
              trailer_youtube_id=trailer_youtube_id
          )
      return content
  
  
  def open_movies_page(movies):
      # Create or overwrite the output file
      output_file = open('fresh_tomatoes.html', 'w')
  
      # Replace the movie tiles placeholder generated content
      rendered_content = main_page_content.format(
          movie_tiles=create_movie_tiles_content(movies))
  
      # Output the file
      output_file.write(main_page_head + rendered_content)
      output_file.close()
  
      # open the output file in the browser (in a new tab, if possible)
      url = os.path.abspath(output_file.name)
      webbrowser.open('file://' + url, new=2)
  </code></pre>