convert forex mt4 to python