BUG: fix scipy.io.mmread() of gzipped and bzip2ed files under Python3

fixes #2152