Javascript Create Url From Function In Python