Create compile_to_bytecode utility function.

I haven't looked at what lazy imports are supposed to do, therefore I haven't imported the needed items until I know how I'm supposed import them.