preparations for new drawpng method
Rename api.py to pydyn.py and add drawPNG method