Didn't get to test, but I think this might work.

Added .terminate() to the as and objcopy processes.
Specified the self.path directory to the above processes at run time.
Cleaned up the Popen calls.