Add back backward-compatibility with Astropy 0.3