fixing python 3 for approval and allowing to ignore invalid votes