Java Absolute Value Function Python Syntax Error