Allow reading pickle dump from stdin and gzip file