build/python.go: fix for methods not returning a value (untested)