Added main functions to fan-control.py