added poll to stackframe.py