adding .py version of some work

Signed-off-by: arda <arda@localhost.localdomain>