* Replacing all _json(self) to serialize(self, purpose=None) #3895
* Flake8ify
Review ID - 2733001
Merge pull request #29 from param107/feature/task-3895

Replacing all _json(self) to serialize(self, purpose=None) #3895