You need to use """ (3 quotes), where you appear to be using only two.
Example:
"""
This block
is commented out
"""
Happy coding!
EDIT: This is not what the user was asking, my apologies.
I'm not experienced with Beautiful Soup, but I found a snippet of code on SO that might work for you (source):
soup = BeautifulSoup(source.lower())
to_extract = soup.findAll('ahref') #Edit the stuff inside '' to change which tag you want items to be removed from, like 'ahref' or 'head'
for item in to_extract:
item.extract()
By the look of it, it might just remove every link on your page, though.
I'm sorry if this doesn't help you more!