Create env python import bluetooth print "looking for nearby devices..." nearby_devices = bluetooth.discover_devices(lookup_names = True, flush_cache = True, duration = 20) print "found %d devices" % len(nearby_devices) for addr, name in nearby_devices: 	print " %s - %s" % (addr, name) 	for services in bluetooth.find_service(address = addr): 		print " Name: %s" % (services["name"]) 		print " Description: %s" % (services["description"]) 		print " Protocol: %s" % (services["protocol"]) 		print " Provider: %s" % (services["provider"]) 		print " Port: %s" % (services["port"]) 		print " Service id: %s" % (services["service-id"]) 		print "" 		print "" 		if(services["name"] == "OBEX Object Push": 				print " Name: %s" % (services["name"]) 				port = services["port"] 				c = client.Client(device_address, port) 				c.connect(header_list=(headers.Target("OBEXObjectPush"),)) 				c.put(file_name, open(file_name).read()) 				c.disconnect()