def gridrange(start, end, step):
    """Generate a grid of complex numbers"""
    for x in frange(start.real, end.real, step.real):
        for y in frange(start.imag, end.imag, step.imag):
            yield x + y * 1j