update to new pyptlib API
Merge pull request #1 from infinity0/pyptlib-api

update to new pyptlib API