Get layer of an object with rs.ObjectLayer(x) inside Python compnent

Thanks @clement,
Is it possible to use rhinoscriptsyntax ?