y_serial is written as a single Python module which reads like a working tutorial and includes many tips and references: http://yserial.sourceforge.net/
This takes the perspective of how to persist an arbitrary Python object (e.g. a dictionary data structure) in a "NoSQL" (Not only SQL) manner.