adding python algorithms