Python Scrpit to Compute the Maximum Mass Flux