added serializing.py (2)