URI percent encode/decode written in C with python bindings