How to get all the open orders and history for my trading account using python

 
Hi, I am using MT4 with Pepperstone and I would like to use python to retrieve all the infos from my trading account like open orders, order history, profit/loss etc. Thank you.