Python as filetype for removing trailing spaces