pdl.py: fixed bug with open flags (thanks to anonymous user)
pdl.py: added argument parser