Hi, Did you see this? It may help.
I also recommend chapter 20 of Modeling neural dynamics, Borgers this is a python implementation and also Brain.