use pytest skipif rather than if else
switch to absolute imports