bash pip install furl python import furl url = furl.furl('https://example.com/path?key1=value1&key2=value2') url.args['key3'] = 'value3' url.path.segments[0] = 'newpath'