Make pAPI a package and remove hardcoded paths