Golang Loop Over Array Python Memory