Create loops

Added Python loops.