Python script that downloads historical data from Trader Workstation using sockets API