Back port the astropy quantity_input decorator.

Remove this once we have a astropy 1.0 dep.