Unplug the parking brake switch and ground the terminal (wire side), light should go out, if not the problem is in the safety switch.
Do the same, unplug the safety switch and ground the connector, light should go out, if not you may have a short somewhere.
Alan