fix content type check and call to loads()
fix content type check and call to loads()

pyfarm/pyfarm-agent,guidow/pyfarm-agent,guidow/pyfarm-agent,guidow/pyfarm-agent,pyfarm/pyfarm-agent,pyfarm/pyfarm-agent