Static Python <--> Cocoa bridge through code generation