python3 versions

Modified from
https://github.com/tanzilli/playground/tree/master/python/spi to run
with python3