General correction of mathods and variables syntax to conform python standards