Fixed warning when using newer version of automake.

Change-Id: Ie432957c870b3722fc0788230ff90b7442ba595e
Use automake's built-in python support.

Change-Id: I6503c1fb14ec82c7f70e3634955f2da516e8de7f