Is there a way to detect the status of the numlock key from within a Python script? I know I can toggle it, but I'd like to tell if it's on or off.

Or alternatively, if I could simply set it On, that would work too.

Thanks.