The `ast` library automatically removes comments when parsing a script, so this task only takes a couple lines of code:
```python
import ast

with open('script.py') as f:
    tree = ast.parse(f.read())

print(ast.unparse(tree))
```
Note that `ast.unparse` was introduced in Python 3.9, so make sure your environment uses that version or a new one. Additionally, the parsing process also discards spacing information and may introduce small compile-time optimizations; if this is undesirable, consider using the `tokenize` library instead.
spam fails_task not_appropriate hate_speech sexual_content moral_judgement political_content toxicity humor violence