In Python 3, filter() returns a filter object, that has no length. Change-Id: I726188a328119f41c534a6232a4494e40815e05c