minimal script - playbook from apt packages

added basic parser functions
corrected typo in write_playbook function