Creating Function In Class Python Command Not Found