adding python definitions to make bvxm scripts shorter