Added slimer support for py3.x
Fix for xvfb SlimerJS environment.