This is basic Python.
From the query, you get a UserInfo
instance, which you have stored in the user_info
variable. You can access the data of an instance via dot notation: user_info.password
and user_info.email
.
If this isn't clear, you really should do a basic Python tutorial before going any further.