Rewrote get_arch and file reading functions in tasks.py