Execution steps:
1. Download the attached zip
2. Extract the file to SDP-Home/integration/custom_scripts folder
3. Edit the unlock_user.py file and provide the inputs, instructions are available within the script as commented lines.

sdpFields can be fetched from Admin -> Service Catalog - Additional Fields section.
4. Configure the script and its parameter under the Admin -> Custom Triggers. The script file to run parameter will be set as shown below.

py unlock_user.py $COMPLETE_V3_JSON_FILE
Please refer to the attached screenshot showing a sample implementation below.
A short guide on setting up python is available
here