Refactor: python: HasQuorum should return a boolean.
And rename it to has_quorum in line with python naming.