C implementation of SQLite4-like tuple serialization for Python