Different Algorithm In Python Step