Python join

Added join and group by functionality.