Allow PyCall to be tested