use python built in tarfile and gzip if available, wrote a new extract_archive function for this
added gzip and bz2 support to extract_archive