Correct the handling of unseen label with varying arangments
pep8 update