Fixing setup script to work with python3.
Adding Python3 compatibility.