Python Single Line Converter