Well done JdeH. Being able to keep a python hat on when writing client side and server side code could be very useful.
I also like how you've kept the output as close to the original Python code as possible. The generated scaffolding code looks neat and easy to read too.