Access objects on different layers with python?

How could i define an object using scene.objects[“object”] if object is on another layer, because i cant seem to access objects if they are on other layers?

Scene.objectsInactive

Thanks man!