'any' exists in most current Theano
better handling for shape (Theano requires a tuple)
Remove all hardcoded methods/attributes in favor of try/catch