python install failed Xlib: connection to ":0.0" refused by server

Now python build works fine. However

    > python install

    > as root failed with the following messages

    > Xlib: connection to ":0.0" refused by server Xlib: No
    > protocol specified

    > Traceback (most recent call last): File "", line 75,
    > in ? try: import gtk File
    > "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/",
    > line 43, in ? from _gtk import * RuntimeError: could not
    > open display

    > Any hint is appreciated

A couple of areas in the build process currently require an X
connection. This should probably be fixed. Are you building on a
local or remote machine?

  * If you are building on a remote machine, you need to set the
    display or use automatic X forwarding with ssh -X.

  * If you are building on a local machine, I think the problem is
    that when you go to install you are root and root doesn't have
    access to the display. You can verify this by trying to do

     > xterm&

    and see if you can get a window to pop up. If not, you need to
    tell the windowing system to allow connections from root.

Unix gurus please advise here. Something like

    > python build
    > xhost +
    > su
    > python install
    > exit
    > xhost -

Let me know!