BPY - How to set Bone Parent?
Here's what I used, the following two lines of code did the job:

arm = bpy.data.objects['Armature']
arm.data.edit_bones['boneName'].parent = arm.data.edit_bones['parentBone']