Golang Get Last Element Of Array Python Methods And Classes