Use flatbuffer_py_library name for consistency

Now the naming convention matches other flatbuffer and other python
rules.

Change-Id: Ifa87f95bd3ae3baa5aba0029676fc58d27eaab49
diff --git a/aos/BUILD b/aos/BUILD
index 2ae0fec..3398716 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -1,5 +1,5 @@
 load("//tools:environments.bzl", "mcu_cpus")
-load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_python_library")
+load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library", "flatbuffer_py_library")
 
 filegroup(
     name = "prime_binaries",
@@ -295,7 +295,7 @@
     visibility = ["//visibility:public"],
 )
 
-flatbuffer_python_library(
+flatbuffer_py_library(
     name = "configuration_fbs_python",
     srcs = ["configuration.fbs"],
     namespace = "aos",
diff --git a/build_tests/BUILD b/build_tests/BUILD
index 0e3b8f7..28dc677 100644
--- a/build_tests/BUILD
+++ b/build_tests/BUILD
@@ -1,6 +1,6 @@
 load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library")
 load("//tools/cpp/emscripten:defs.bzl", "emcc_binary")
-load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_python_library")
+load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_py_library")
 
 emcc_binary(
     name = "helloworld.html",
@@ -99,7 +99,7 @@
     ],
 )
 
-flatbuffer_python_library(
+flatbuffer_py_library(
     name = "test_python_fbs",
     srcs = ["test.fbs"],
     namespace = "aos.examples",
diff --git a/third_party/flatbuffers/build_defs.bzl b/third_party/flatbuffers/build_defs.bzl
index 2ddc65b..2f6c944 100644
--- a/third_party/flatbuffers/build_defs.bzl
+++ b/third_party/flatbuffers/build_defs.bzl
@@ -254,7 +254,7 @@
         compatible_with = compatible_with,
     )
 
-def flatbuffer_python_library(
+def flatbuffer_py_library(
         name,
         srcs,
         namespace,