py3 compatibility with discover(long)