Python call of import image as plane
The python docs for os.abspath() says


  os.path.abspath(path) 
   Return a normalized absolutized version of the pathname path. On most platforms, this is equivalent to calling the function normpath() as follows: normpath(join(os.getcwd(), path)).


that is it is adding the current directory (from os.getcwd()) onto the start of the absolute filepath that you have entered. This causes the load image to fail which then gives an error when attempting to set the use_alpha property.

The simple solution is to remove the os.abspath() call.