def movies_directed_by(self, director):
        """Return list of movies that were directed by certain person.

        :param director: Director's name
        :type director: str

        :rtype: list[movies.models.Movie]
        :return: List of movie instances.
        """
        return [movie for movie in self._movie_finder.find_all()
                if movie.director == director]
def movies_directed_by ( self , director ) : return [ movie for movie in self . _movie_finder . find_all ( ) if movie . director == director ]
Return list of movies that were directed by certain person.

        :param director: Director's name
        :type director: str

        :rtype: list[movies.models.Movie]
        :return: List of movie instances.