def METHOD_NAME(self):
    """
    Creates a new AFS token
    Raises:
        CredentialRenewalError: If the renewal process returns a non-zero value
    """
    command = 'kinit && aklog'
    process = subprocess.Popen(command, shell=True, stdin=subprocess.PIPE,
                               stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    stdoutdata, stderrdata = process.communicate(getpass('Kerberos password: ').encode())
    if process.returncode == 0:
        logger.info('AFS token %s created. Valid for %s', self.location, self.time_left())
    else:
        raise CredentialRenewalError(stderrdata)