The semantics of Python in K