I just created a new library for interfacing with the Smart Home API in Python called askhome. It removes most of the boilerplate, check out this code of a sample skill:
from askhome import Smarthome, Appliance class Light(Appliance): @Appliance.action def turn_on(self, request): pass # Your logic for switching a light on here home = Smarthome() home.add_appliance('light1', Light, name='Kitchen Light', model='Very Bright Light 8000') handler = home.lambda_handler
If you run into any problems or get some ideas, feel free to create an issue on github.
Thanks for checking it out!