Python Order Flow Analysis