python's getattr in golang