Update poll.py

add doc strings