How do I extract only the key from a Google Cloud Datastore entity

Solution
print(user.key.id)