Added import check for pefile module