How to remove brackets and the contents inside from a file using python : I have a large file which have contents like 
ServiceProfile.SharediFCList[11] where the number increments.

my requirement is to remove the [number] contents from the file and save those to another file.
Please guide me in doing so

Regards
Vishnu