Remove Text From A String Python Definition