It is absolutely possible:
import sys
sys.stderr = open("/tmp/errors.txt", "w")
And all following prints to stderr will go to that file.
You should probably be doing this at the shell level rather than at the Python level, though -- it's far more flexible.