Fibonacci generator in C ... python code is similar