urlparse is in six.moves as urllib_parse
need to read FITS files as 'rb' for py3