from idaapi import *
current_addr = ScreenEA()
i=0
filePath="e:\\bp_Func.txt"
myfile = open(filePath, 'w')
for function in Functions(SegStart( current_addr ), SegEnd( current_addr )):
str_f=str(hex(function))
myfile.write("bp 0"+ str_f[2:]+ '\n')
i=i+1
print "Out Put bp number %d" % i
myfile.close()