improve actions python code
Merge pull request #2 from rmoch/master

improve actions python code