@faizkhan00, @maddenpj - Could you all take a look at this, please?  From here to line 31 is subtly different, and my Python's not strong enough to be sure of it.