You could use `hasattr(self.n_clusters, 'len')` so the code would accept lists like `[m, n]` too, I don't know if there'd be any drawbacks.  `hasattr` is the 'duck typing' approach anyway.