make davinci parallel example python3 compatible