fix python invocation for doc generation