How To Write A Method In Python