The following tutorial will help you setup a python script that will allow you to use the macro keys on your Razer Blackwidow keyboard with programs like AutoHotKey without the need for Razer Synapse.
Download and install python ( i used version 2.7.13 )
Download and install libusb-win32
Run the libusb-win32 "filter wizard"
select "Install a device filter" and click next
look for your Razer Blackwidow keyboard in the list of devices and click install
Download Pyusb
To install Pyusb open a command prompt window where "setup.py" is located and run the command "python setup.py install"
Download this Python script
Run the libusb-win32 "Test (win) Program" and open the Python script in a text editor
Make sure that the value of "VENDOR_ID" is the same as "idVendor" in the TestLibUsb window
Make sure that the value of "PRODUCT_ID" is the same as "idProduct" in the TestLibUsb window
Make sure that the value of "USB_INTERFACE" is the same as "bInterfaceNumber" in the TestLibUsb window
Save and run the Python script
The macro keys on your Blackwidow keyboard should now work without the need of razor synapse and should now correspond to the following keys:
m1 = f13
m2 = f14
m3 = f15
m4 = f16
m5 = f17
Fn = f24
The python script will need to be run every time you unplug / plugin your keyboard or reboot your PC; however the script can be made to run on startup. Steps 10 to 13 may need to be repeated if you change the usb port your keyboard is plugged in to.