@modules.action
    def generate_key(self, args):
        """generates a keypair"""

        self.extra_params(args)
        
        self.prepare_folder()

        if os.path.exists(self.normalize_path('~/.ssh/id_dsa')):
            return self.failure('~/.ssh/id_dsa key already exists!')

        p = subprocess.Popen(['ssh-keygen', '-t', 'dsa']).wait()

        if not p:
            self.success('Seems like the key was generated!')
        else:
            self.failure(p % 'Exit code: %s')
dataset/ETHPy150Open va1en0k/please/pyplease/modules/ssh.py/Module.generate_key/swapped operands of `%`