Alternatively, for filling it ... run your python into a five gallon bucket (as Frank said, know the volume of the bucket), and time it. Say it takes 31 seconds to fill. Now, run the python into the tank and time how long it takes to fill the tank. Say it takes 8 minutes 14 seconds.
8*60 + 14 = 494 seconds. Divide by bucket fill time (31 seconds) = 15.93 buckets, times volume of bucket (5) = 80 gallons.
Your numbers will, of course, vary. You'll have to run the python at full blast, and make it's not kinked.