Use python functions to delete MS parts