Javascript Create Query String Definition In Python