Align current_flow_closeness.py with PEP-8 and remove some duplicate code