simple 6 lines for calculating MPG in Python