Otto cycle simulator using Python