a similar question has been asked before, but the answers suggested a workaround which is not applicable to my situation.
An email message is piped from mutt to a sc
Try to reset STDIN using sys.stdin.seek(0)
sys.stdin.seek(0)
Reference: http://docs.python.org/library/fileinput.html