some machine leanrning algorithm implemented with Python