'porting' of srcget to python