https://github.com/ashtree74/MeshData/blob/73c7dbb765b86624fd49a95bdcbd0382d67effe1/main.py#L23 Writing code this way makes it untestable. Make the file name or data from file a param to function.