added imports from future for PY 3.0 compatibility and general saneness.