Metadata driven hive table generation and joins implemented in python