add python3 support, modify documentation