put import for py._io.capture in try catch, its just for the tests anyways