Added main Python script.
Added unit test.