Replace spaces with tabs to avoid Python syntax error