3rd specification added. Python/JavaScript mash up.