Make astropy.modeling compatible with Python 2 and 3 using six

In the spirit of #2033

cc @nden