Creating Function In Class Python Command Line