Changes psuedo-python into functional python