Changes for python 3 support. Added travis support.