update docs, fix python3 compatibility