Silver implementation for Python