Implement sed in python

Signed-off-by: Ramon Medeiros <ramonn@linux.vnet.ibm.com>