A python module for umbrella sampling and transition path sampling runs