def gridsizesanitycheck(self, M):
    'Check to see if the grid size is going to be REALLY large. '
    if (M.__len__() > 10000.0):
        return False
    else:
        return True
Check to see if the grid size is going to be REALLY large.
def gridsizesanitycheck(self, M):
    ' '
    if (M.__len__() > 10000.0):
        return False
    else:
        return True