adding PyAlgorithm