Added static message removal to python script.