I just learned python like last week so this is just an exercise. Please tell me if I'm making some naive assumptions and this code will break given the right input. (Ran it on PowerUser.py and it seemed fine.)