Allow passing build options with IPython Magic

This allows the user to pass build options using the first line of the cell.
And this is the right way to convert between unicode and bytes.