Added setGenThumbnails to python API