pytgl: Move everthing required by tgl_init to class __init__ method and make Python API more Pythonic.