I wrote a simple code to create a buffer for linear features. The script is meant to be run from the command line using arcpy and sys module. The script is this one:

When run I got a 000800 error, here the result:

I'm new to working with python and arcpy, any ideas what is wrong with my approach?