Python Check String For Substring Method Definition Computer