Added emulatorlib.py
Finished PEP 8 validation and syntax error

Syntax error was on last function def.