Updated as_variable_name to Python 3
Merge pull request #453 from schryer/master

Updated as_variable_name to Python 3