'Returns the number of total and completed pieces
@return A tuple containing two integers, total and completed nr of pieces'

def get_pieces_total_complete(self):

    if (self.haveslice is None):
        return (0, 0)
    else:
        return (len(self.haveslice), sum(self.haveslice))
