Python Algorithmic Trading Element