changed code in python tutorial, these functions don’t return image
Merge pull request #2138 from alekcac:python_tutorial_fix