Use Python 3.x print_function imported from __future__ for backwards compatibility.
url_encode and quote_plus is under urllib.parse in Python 3.x
Only import setup from distutils.core if setuptools is not available.
Merge pull request #16 from FronterAS/python_3

Improved Python 3 support. Thanks to petteraas!