fix run_command api call for python3
fix run_command api call for python3

* python 3 no longer throws JSON encoding errors
* fixed output when the command exits with an error
* fixed output when command times out and show what the timeout value is
aldryn/aldryn-devsync,aldryn/aldryn-devsync,aldryn/aldryn-devsync