Added a Python formatter to the serialize state
Merge pull request #7866 from whiteinge/serialize-to-python

Added a Python formatter to the file.serialize state