corrected issues related to parsing python array into C array and getting the length of python string internal buffers
merge v2.2.2 with local fixes
remove deprecated variable