Use 'as' syntax for Py3 compatibility
Use relative import for Py3 compatibility
Switch string to unicode for Py3 compatibility