Use new-style classes.
Support requests >= 1.0.