#! /usr/bin/env python from subprocess import check_output def get_pass(account): return check_output("pass mail/" + account + "/password", shell=True).splitlines()[ 0 ]