while running:
    start = time.clock()
poll_twitter()
anything_else_that_seems_important()
work_duration = time.clock() - start
time.sleep(polling_interval - work_duration)
Best way to poll a web service (eg, for a twitter app)