Moved responce formatting to action class. PEP8 fixes