Add Python 3 support and a license