added +x and fixed a.get() is None and temporary file