I've done the same thing and I simply added this line:
(sleep 20;python /path/script_name.py)&
The script works fine, except the BaseHTTPServer, that probably doesn't start (I've tried to increase the sleep time, but it still doesn't work). Otherwise if I run the script from onion terminal everything works perfectly.