Python join

Added join and group_by functionality.