Lstm Example Python Class Method