Python script to simplify input data.