Fixes an issue with how mode is detected from input streams for SFF file parsing. Closes #440
Thank Tyghe Vallard for SFF gzip fix
Docstring and PEP8 style; added Python 3 TODO