IndexError: list out of range

Please read our topic on how to ask questions.

In particular, code snippets needs backticks.

Just looking at this script, it looks like your script is buggy, rather than anything Psi4-specific. I recommend you do some debugging on your own until you either find the problem or have a question that requires Psi4 expertise.