An Algorithmic Trading and Portfolio Management Framework with Python