Another problem in your code
MAX_NUMBER = 2 ** 32 - 1
def findSlowestUnit(units):
slowestUnit = None;
minSpeed = 0
for currentUnit in units:
if currentUnit['speed'] > minSpeed:
slowestUnit = currentUnit
minSpeed = currentUnit.speed
return currentUnit
With Python, indentation is very important, it is the structure of your code.