Reimplementation of SRP for Python