Proof of concept solution now working with both Python2 and Python3