modify import_by_name unpacking for sphinx >= 1.2.3

Additional modification related to https://github.com/astropy/astropy-helpers/pull/80.