Changes to poll signature to support --bg flag

Changes to poll() signature that correspond to https://github.com/pulp/pulp/pull/411