python3 porting fixups
Three individual fixes, one per commit:
- drop accidentally introduced argument to _cursor.mynext() again
- only try to append lists, not lists and dict keys
- give os.write the byte sequence it needs
Three individual fixes, one per commit: