def open(self, inp, opts=None):
if isinstance(inp, list):<EOL><INDENT>self.input = inp<EOL><DEDENT>else:<EOL><INDENT>raise IOError("<STR_LIT>" % (type(inp), inp))<EOL><DEDENT>return<EOL>
Use this to set where to read from.