Replacing _json with serialize method & Flake8ify  #3895

Review ID - 2833002
Merge pull request #67 from param107/feature/task-3895

Replacing _json with serialize method #3895
Enabling csrf_token #4217