Method Inside Class Python 2