Creating Function In Class Python Command