Refactor on_button_switch callback method
Add python profiling files to .gitignore