Python Homework Help on Earthquakes