Python Syntax For A Method To Protect