Dynamic portfolio allocation with python + numpy + pandas + qstk