I wrote a similar program a while ago. My program loads and saves the alarm settings from/to an XML file using the Python elementtree module.
Here is an example test file:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated for AlarmClockApplication -->
<alarms>
<alarm>
<name>Start laundry</name>
<time_due>08:00:00</time_due>
<repeat_days>
<day>Mon</day>
</repeat_days>
<enabled>True</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/alarm_1.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
<alarm>
<name>Formula 1</name>
<time_due>13:55:00</time_due>
<repeat_days>
<day>Sun</day>
</repeat_days>
<enabled>False</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/the_chain.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
<alarm>
<name>Iron laundry</name>
<time_due>15:45:00</time_due>
<repeat_days>
<day>Mon</day>
</repeat_days>
<enabled>True</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/alarm_2.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
<alarm>
<name>Start dinner</name>
<time_due>16:35:00</time_due>
<repeat_days>
<day>Sun</day>
</repeat_days>
<enabled>False</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/alarm_2.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
<alarm>
<name>Blood Pressure</name>
<time_due>16:50:00</time_due>
<repeat_days>
<day>Tue</day>
<day>Thu</day>
<day>Sun</day>
</repeat_days>
<enabled>False</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/alarm_2.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
<alarm>
<name>Bath</name>
<time_due>18:55:00</time_due>
<repeat_days>
<day>Tue</day>
<day>Thu</day>
<day>Sun</day>
</repeat_days>
<enabled>True</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/alarm_2.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
<alarm>
<name>Blood Pressure</name>
<time_due>19:55:00</time_due>
<repeat_days>
<day>Mon</day>
<day>Wed</day>
<day>Fri</day>
<day>Sat</day>
</repeat_days>
<enabled>False</enabled>
<sound_file>/home/richardt/Applications/alarm_clock/sounds/alarm_2.wav</sound_file>
<loop_sound>True</loop_sound>
</alarm>
</alarms>