Implementation of common algorithms with python