Camera Collision Properties?

Fellow BA member pqftgs made me a very quick and simple script that would make sure the camera wouldn’t go through walls and such.

It works fine, but it searches for EVERYTHING, so even a 1-foot off the ground object would be detected, HELL, even the character’s sword.
Still relatively new to python, so I was just wondering HOW I could accomplish this.

I want only things with the property “wall” to be detected.

Thank you!