scripts: fix syntax error in strip_bom.py

Superseeds #107 

Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
Co-authored-by: Georgios Papoutsakis <georgios.papoutsakis@cern.ch>