Thanks for the Ehlers example. I come from a ThinkScript(TOS) background and have some experience with Ehlers work.
The code I am looking to translate into Python is used in Ehlers Fisher Cyber Cycle and used to smooth the price:
Price = (H+L) / 2
Smooth = (Price + 2*Price + 2*Price + Price) / 6
Where , ,  references the price level 1, 2, and 3 bars ago.
I am still working on my algorithm currently, but I was wondering how to most efficiently implement the Smoothed Price using Python.