Remove usedef + globals

When a global is used in a function before being assigned, it would raise the error "identifier has global linkage and can't be assigned"

Example in test/cases/globals.py