tidy up "profile.py"
remove unnecessary string formatting
Ensure "__slots__" property is present in data structures