Good work but here are my two cents for your next update:
1. Hardcoded values(BINs) in code are NEVER good, move them to a config file or any other external resource
2 Standards, nothing wrong with the way you did but consider using common patterns when sharing code with the world:
--> [ #!/Users/blackbot/Python/Python35-32/python ] - use common/standard [ #!/bin/python ] ,
--> and [ if _name_ == _main_ ] instead of calling main() directly