IMDbPY seems to offer a simple way for you to bring name into imdb id
# Search for a movie (get a list of Movie objects).
s_result = ia.search_movie('The Untouchables')
# Print the long imdb canonical title and movieID of the results.
for item in s_result:
print(item['long imdb canonical title'], item.movieID)
IMDbPY seems to offer a simple way for you to bring name into imdb id