I am close to needing this. I got these links working with the exception of charts. Minor if you ask me but these links were worked quite well
https://quantlabs.net/blog/2019/01/build-an-equity-curve-with-python-with-these-links/