Remove dependency on six and enable sphinx tests on Python 3

Actually, it turns the function I had in mind is only in ah_bootstrap.py

https://github.com/astropy/astropy-helpers/blob/master/ah_bootstrap.py#L672

Should probably make a version of this to go into `astropy_helpers.utils` as well.