Glass.py: Create Python web applications for Google Glass
github.com
github.com
Those cards are your app's UI. Actions on the device (acting on cards, sharing content with your app) result in REST commands to your backend.
So with something like this, you don't need to care about the nitty gritty of Google's API, you just focus on your application logic.