python: add function to marshal a backtrace

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
python: import the json module

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #23 from djs55/experimental-exceptions

Add support for exception backtrace marshalling