trade with python