updated gen-py code to Apache Hive 0.12.0