Modified makedoc for python 3