use binary stdin on py3k