Python Check If Custom Object Layers