adding code to adapt for reference counting issues (not pretty, but it works)
backing out .pyc files