Replace print() with astropy log.warn()

And rewording of the warning message.