adding ptrutil.c
adding more Python code
Merge pull request #5 from slayoo/master

adding ptrutil.c