Javascript Create Url From Function In Python Example