os.path.join(settings.MEDIA_ROOT, 'styles', 'theme_compiled.css').  This applies to many other places this is used.

os.path.join will handle cross-platform differences in path separators.