Basic function in Go version, typo fix in Python3