simplify pyc deletion
better yaml support