BUG: Fixes Python3 compatibility
TST: Adds test case for Issue 4093