Google Interview Question

1. How to write good handler for python api