def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def _nearest_weekday(weekday):
    return datetime.now() + timedelta(days=(weekday - datetime.now().weekday()) % 7)