I have written a tool in python which i want to be able to launch from the right click of the folder in the File and folder explorer... and I want to pass the folder i right click as argument to the python script !!
First check the version on Nautilus:
Now you should be able to just put a script in this folder. This works for bash (right click and there is an option called scripts), I think it works for python too. If the python script does not appear then you may have to make a bash script to call the python. Remember to make your script executable! Also check out this link for more info (such as variables nautilus defines when your run scripts from right clicking, such as the folder or the file you clicked on).