remove python state