Update poll.py

change Polls to PollsFactory and add doc string