Clear Function Dictionary In Python Methods String