Updated to work with python3 added BSD license