alert.py implemented

Please make default value for app_id = None