[python] remove return from some Void methods because the analyzer complains