Rewritten in Python

Signed-off-by: Thomas Hodgson <thomas.hodgson@gmail.com>
Added README

Signed-off-by: Thomas Hodgson <thomas.hodgson@gmail.com>