Mini Python and PHP implementations of preference based restaurant ranking