Practice degisn pattern for Python