for interactive python sessions, you can set the PYTHONSTARTUP environment variable and those commands are executed before the interactive session starts.
Is there a way to configure that file?
EDIT: please disregard, found it in the bash session `declare' output, but it should be documented somewhere else ...