added tests/implemented pypore.open for opening files based on extension