add custom python state