Some improvements (py3k and docs)