from __future__ import division
from time import time


def normalize(val, _min, _max):
    return (val - _min) / (_max - _min)


def countdown(initial_time, seconds):
    while time() - initial_time < seconds:
        return False
    return True

from __future__ import division
from time import time


def normalize(val, _min, _max):
    return (val - _min) / (_max - _min)


def countdown(initial_time, seconds):
    if time() - initial_time < seconds:
        return False
    return True

Change while->if to improve readability
Change while->if to improve readability
