passing additional varables to python, creating a ptr2np function