pytgl: Add net_methods and mtproto_methods callbacks.

Sorry, forgot to create a new branch for this.