finished python class