Refactor load_function
Move exceptions to linkpred.exceptions
Make profile files work