python trade