Python script generating transformation of one IFS to other,