Remove debug and transform input line into idiomatic python.