Auto-detect file type in consensus.py

This code was failing in the wrong way--calculating corrupt data rather than throwing an error.  

This change should remove some instances of the bad behavior.  The `-t` option is retained for backwards compatibility, even though it is ignored.