Fix alarm.py imports and move logging settings to default file