<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pretty_format_cert(cls, cert):
 """ Pretty display of a certificate."""

        crt = cert.get('cert')
        if crt:
            crt = ('-----BEGIN CERTIFICATE-----\n' +
                   '\n'.join([crt[index * 64:(index + 1) * 64]
                              for index in range(int(len(crt) / 64) + 1)]).rstrip('\n') +  # noqa
                   '\n-----END CERTIFICATE-----')
        return crt