Python Program Opens Minimized Formal Charges