Change function signatures. Exception is thrown from the scala component and not from the python one.