Update cf_geo.py

added bearing function