Try im.save("/tmp/artsciimg.png"). This will most likely show that it's a local permission error.
Then identify which directory it's trying to write to with os.system("pwd") and chmod 777 that directory.
Then identify which directory it's trying to write to with os.system("pwd") and chmod 777 that directory.