make the bin scripts called with main()

This will make everything easier to manage and callable by other python
scripts/modules if you need to depend on the module. Others can then
just call the main() function instead of executing the script.

Closes-Bug: #1261823

Change-Id: I5e94ee19bd4f7a69d7ca5efc6288d402520cd5bf
Merge "make the bin scripts called with main()"