Another fix for inline python scripts