Available on python
reset():Void
write(object:Dynamic):Void
writelines(list:Array<String>):Void
@:value({ errors : "strict" })decode(input:Dynamic, errors:String = "strict"):Tuple2<Bytes, Int>
@:value({ errors : "strict" })encode(input:Dynamic, errors:String = "strict"):Tuple2<String, Int>