Added type declaration in cashflow.pyx