Method Inside Main Method In Python