Allow path to be set on URL

Should actually be using https://docs.python.org/2/library/urlparse.html