@schema.setter<EOL><INDENT>def schema(self, schema):<DEDENT>
if isinstance(schema, basestring):<EOL><INDENT>strschema = schema<EOL>schema = json.loads(schema)<EOL><DEDENT>else:<EOL><INDENT>strschema = json.dumps(schema)<EOL><DEDENT>Draft4Validator.check_schema(schema)<EOL>self.set({"<STR_LIT>": strschema})<EOL>
sets the stream's schema. An empty schema is "{}". The schemas allow you to set a specific data type. 
        Both python dicts and strings are accepted.