improve fib.py