Added Python3 support

* Adjustments to code mostly for string/bytes/bytearray management.
* Added a 'type' attribute to SosResource for the data type of its value.
* Also added shell scripts to run tests and recorder example.