Remove dependency on python-six

Port from python-six to Python 2 API.  Both RHEL 6 and RHEL 7 use
Python 2 by default and python-six is not available on RHEL 6.