Problem Set 7 for the course Python: Programming for Scientists