Uses inspect.getinnerframes() instead of inspect.trace() to support python 3

This fixes #8