def app_installer(app):
try:
app_inst = subprocess.call(app)
except:
app_inst = subprocess.Popen("apt-get -y install " + app, stdout=subprocess.PIPE, shell=True)
app_inst.wait()
print('application: ' + app + ' installed')