basic pyTG functions added