#!/usr/bin/env python2 # -*- coding: utf-8 -*- from subprocess import check_output def get_pass(account): return check_output("pass AppPasswords/" + account, shell=True).splitlines()[0]