Update basic code for Python 3?

What’s the correct way to write this in Python 3 for BGE 2.5?:

import GameLogic as GL
ob = GL.getCurrentScene().objects
cont = GL.getCurrentController()
own = cont.getOwner()
sensor = cont.getSensor("mysensor")

“getOwner()” became “owner,” but I can’t find how to access a sensor
Thanks!

sensor = cont.sensors["mysensor"]