Is there a way to highlight (or flash) the line the cursor is on programmatically? 

Something like this: 
===+===
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os

highlight(os.environ.get('TM_CURRENT_LINE', ""))

# ..do something else..
===+===

Many thanks in advance, 
Michele