Resolve "OTB Python code in the CookBook is not compatible with Python3" Closes #1541 See merge request !41