Fix urlparse in cookbook for python3

Use the python `six` library to realize the compatibility of `urlparse` in python2 and python3

See merge request !1138
4 jobs for 1.0
in 0 seconds, using 0 compute credits, and was queued for 0 seconds