Updated to work with Python3 (changed print statements to functions)