Set the "pass" argument optional so users can type their password once using gpg-agent.
Add __name__ == "__main__" check.