In your shell do:

export PYTHONPATH=$PYTHONPATH:$ROOTSYS/lib:$ROOTSYS/root/pyroot

Your python root macro should begin like this:

from ROOT import *

To run your macro:

 python -i filename.py