psi4.driver.
sanitize_name
Function to return name in coded form, stripped of characters that confuse filenames, characters into lowercase, + into p, * into s, and (, ), -, & , into _.
+
p
*
s
(
)
-
,
_
Also checks the sanitized name against a list of restricted C++ keywords.