Add python 3 support and Makefile