Creating Simple Loops in Python