'Get the full lockstring or the lockstring of a particular
access type.
Args:
access_type (str, optional):
Returns:
lockstring (str): The matched lockstring, or the full
lockstring if no access_type was given.'

def get(self, access_type=None):

    if access_type:
        return self.locks.get(access_type, ['', '', ''])[2]
    return str(self)
