add while loops and comprehensions to base python reference