added options to pystack and pystack.py