python loops
mixed functions