``L`` is only used here and ``not >`` is ``<``, so I'd rewrite the above two lines as ``if Zstar.size < 2:``