downloaded_file = "abc.zip"
att_file_desc = "Attached file description"
kwards = {
'contenttype':'application/octet-stream',
'filename': downloaded_file
}
# attachfile method will return the id of attached file
bz.attachfile( bug_id, downloaded_file, att_file_desc, **kwards)