Please read our post for what needs to be in a help topic. In particular, “If Psi is not doing what you want: include your input file, version number, and relevant part of the output file”.
This strongly reminds me of a bug we already have fixed, in which case, all I can suggest is that you use a more recent version.
I’m struggling to understand your post. For example, when you say “I am working with a python code load psi4”, do you mean “I am working with a python code that imports Psi4”?