various Python fixes
Begin arcbot message
This merge request is automatically copied from !755 (merged) orginally made by @dcameron
End arcbot message
Begin arcbot message
This merge request is automatically copied from !755 (merged) orginally made by @dcameron
End arcbot message