Old-style 0123 octals are deprecated in py3
Allow different names for grub-setup
Find core.img wherever it is
Use relative paths within /boot device
Use binary mode, to satisfy py3
Write text file in text mode
Python 3 ok!