I think you can also comment out the explicit order for the test. self.skybox.setBin("background", 1)
self.skybox.setBin("background", 1)
This is explained here by the Panda3D developer himself