Fix syntax error in lib/searpc-codegen.py", line 182
Add basic support for python 3