First (incomplete) version for Python.-