A Chou Fasman algorithm implementation in python