wait() always returns None in Python 2.6