updated subdir extraction in ggplot/tests/__init__.py to handle .pyc files

On my system, running the tests twice in a row will cause many errors. This is because .pyc files are being used the second time around which causes the extracted subdir to be incorrect.