Fix global declaration SyntaxWarning
Merge pull request #99 from mistio/syntax_warning_fix

Fix global declaration SyntaxWarning