Just starting an effort to port the extension module to Python 3. The Python 3 porting is mostly motivated by a renewed interest in including a method to change the process name in the python stdlib .
The main problem of the porting is that python2 was kind enough to expose the argv pointer using the Py_GetArgcArgv() function. In Python3 the function returns a decoded version of the arguments in a wchar_t array. This is a problem for platforms where process title changing is implemented by argv clobbering.
Luckily on these platforms the arguments are contiguous the environment. What I want to try then is to recover the original argv area starting from the environ pointer and scanning backwards looking for argc strings (with all the necessary care).