Created a new branch to make a first attempt.

Will add existing code in the next commit.

Some renaming of variables to follow Python coding conventions.