Creating Function In Class Python Example