Adds Python implementation