I did try to run it on my computer (Win OS) but I keep on getting the first error. Regarding the understanding the code, I looked at the scipy part and I tried it with pymc3 that were second error came in. There were no examples how to use some of the parameters which is why I was confused.