Automator - Get name of dropped file without file type
The first line of your script is Applescript whereas it should be shell (bash by default). The tersest version I can think of:

for f in "$@"
do
    /usr/local/bin/python3 /Volumes/Scripts/script.py "$f"
    mkdir ${f%.*}
done