Fix a ton of errors/warnings found by PyDev